home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr50
/
pbc22b.zip
/
PBC$BAS.ZIP
/
PRINTBOX.BAS
< prev
next >
Wrap
BASIC Source File
|
1993-01-11
|
1KB
|
30 lines
' +----------------------------------------------------------------------+
' | |
' | PBClone Copyright (c) 1990-1993 Thomas G. Hanlin III |
' | |
' +----------------------------------------------------------------------+
DECLARE SUB XQPrint (St$, BYVAL Row%, BYVAL Column%, BYVAL VAttr%, BYVAL Page%, BYVAL Fast%)
SUB PrintBox (St$, TopRow%, LeftCol%, BottomRow%, RightCol%, VAttr%, Page%, Fast%)
Cols% = RightCol% - LeftCol% + 1
IF Cols% < 1 OR (BottomRow% - TopRow% < 0) OR LEN(St$) = 0 THEN
EXIT SUB
END IF
IF LEN(St$) = 1 THEN
t$ = STRING$(Cols%, St$)
ELSE
DO UNTIL LEN(t$) >= Cols%
t$ = t$ + St$
LOOP
t$ = LEFT$(t$, Cols%)
END IF
FOR Row% = TopRow% TO BottomRow%
XQPrint t$, Row%, LeftCol%, VAttr%, Page%, Fast%
NEXT
END SUB